<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript" src="js/cal.js"></script>
<link href="css/body.css" rel="stylesheet" type="text/css">

<link href="css/calendar.css" rel="stylesheet" type="text/css">
</head>

<body>

<logic:notEmpty name="bzjSuccess" scope="request">
	保证金维护完成。
</logic:notEmpty>
<logic:empty name="bzjSuccess" scope="request">
<html:form action="writeReceipt" method="post">
<html:hidden property="callMethod"  styleId="callMethod" value="updateBzj"/>
<html:hidden    property="tableID" styleId="tableID"/>
		<div>请填写保证金：<html:text property="bzj" maxlength="7" readonly="readonly"  style="width:100px;"  styleId="bzj" /><input type="button" onclick="updatebzj();" value="确定"/></div>

</html:form>
</logic:empty>

<script >
function updatebzj(){
	
	if($.trim($('#bzj').val())==""){
		alert('完成日期不能为空！');
		return ;
	}
	
	if (isNaN($.trim($('#bzj').val()))) {
		alert('保证金必须为数字！');
		return ;				
	}
	
	
	$("form:first").submit(); 
}
$(document).ready(function(){
	<logic:notEmpty name="bzjSuccess" scope="request">
		parent.refresh();
	</logic:notEmpty>
	
});
</script>
</body>
</html>